<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style="font-size: 13px;color: #9a989f">
            註：第一個工序必須是"到廠"或"半成品庫存"或"白刀庫存"<br>
            最後一個工序必須是"半成品庫存"或"白刀庫存"或"回公司入庫"
        </div>
    </div>

    <div class="form-group" id="c_p1">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p1]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p2">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p2]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p3">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p3]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p4">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p4]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p5">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序5')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p5]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p6">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序6')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p6]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p7">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序7')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p7]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p8">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序8')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p8]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p9">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序9')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p9]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p10">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序10')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p10]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p11">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序11')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p11]" type="text" value="">
        </div>
    </div>

    <div class="form-group" id="c_p12">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序12')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  data-rule="" data-source="wu/proceduretype/index" data-primary-key="name" data-field="name" class="form-control selectpage" name="row[p12]" type="text" value="">
        </div>
    </div>

    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2"></label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a>-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
